<?php defined('NABU') || exit ?>

<?php require_once 'views/layouts/messages.php' ?>

<hr>

<img src="<?= $article['cover'] ?>" alt="Portada del artículo" width="16%">

<h1><?= $article['title'] ?></h1>

<div>
  <p>Autor:</p>
  <a href="<?= $author_profile ?>"><img src="<?= $article['author_avatar'] ?>" alt="Avatar del autor" width="8%"></a>
  <p><a href="<?= $author_profile ?>"><?= $article['author_username'] ?></a></p>
  <p><?= $article['date'] ?></p>
</div>

<hr>

<?= $article['content'] ?>

<hr>

<h2>Datos del autor</h2>

<div>
  <a href="<?= $author_profile ?>"><img src="<?= $article['author_avatar'] ?>" alt="Avatar del autor" width="8%"></a>
  <p><a href="<?= $author_profile ?>"><?= $article['author'] ?></a></p>
  <p><?= $article['author_description'] ?></p>
</div>

<hr>
